package com.zn.events
{
	import flash.events.Event;
	import flash.geom.Rectangle;

	public class ScreenScrollEvent extends Event
	{
		public static const SCREEN_SCROLL_EVENT:String = "screenScrollEvent";
		
		public static const SET_SCREEN_SCROLL_EVENT:String="setScreenScrollEvent";
		
		private var _rect:Rectangle;

		public function ScreenScrollEvent(type:String, rect:Rectangle)
		{
			super(type,true,false);

			this._rect = rect;
		}

		public function get rect():Rectangle
		{
			return _rect;
		}

		public override function clone():Event
		{
			return new ScreenScrollEvent(type,rect);
		}

		public override function toString():String
		{
			return formatToString("ScreenScrollEvent","rect");
		}
	}
}